package com.course.base;

public class Person {
    // 权限修饰符：protected（子类可访问）
    protected String id;
    protected String name;
    protected String gender;
    // 父类构造方法
    public Person(String id, String name, String gender) {
        this.id = id;
        this.name = name;
        this.gender = gender;
    }
    // 父类业务方法：抽象打印“工作/学习单”（由子类重写）
    public void printSheet() {
        System.out.println("=== " + this.name + "的信息 ===");
        System.out.println("编号：" + this.id);
        System.out.println("性别：" + this.gender);
    }
}
